﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001201 RID: 4609
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartAlleyEventScRsp : IMessage<StartAlleyEventScRsp>, IMessage, IEquatable<StartAlleyEventScRsp>, IDeepCloneable<StartAlleyEventScRsp>, IBufferMessage
	{
		// Token: 0x17003A60 RID: 14944
		// (get) Token: 0x0600CE83 RID: 52867 RVA: 0x0022C338 File Offset: 0x0022A538
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartAlleyEventScRsp> Parser
		{
			get
			{
				return StartAlleyEventScRsp._parser;
			}
		}

		// Token: 0x17003A61 RID: 14945
		// (get) Token: 0x0600CE84 RID: 52868 RVA: 0x0022C33F File Offset: 0x0022A53F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartAlleyEventScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A62 RID: 14946
		// (get) Token: 0x0600CE85 RID: 52869 RVA: 0x0022C351 File Offset: 0x0022A551
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartAlleyEventScRsp.Descriptor;
			}
		}

		// Token: 0x0600CE86 RID: 52870 RVA: 0x0022C358 File Offset: 0x0022A558
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAlleyEventScRsp()
		{
		}

		// Token: 0x0600CE87 RID: 52871 RVA: 0x0022C360 File Offset: 0x0022A560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAlleyEventScRsp(StartAlleyEventScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.eventId_ = other.eventId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CE88 RID: 52872 RVA: 0x0022C391 File Offset: 0x0022A591
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAlleyEventScRsp Clone()
		{
			return new StartAlleyEventScRsp(this);
		}

		// Token: 0x17003A63 RID: 14947
		// (get) Token: 0x0600CE89 RID: 52873 RVA: 0x0022C399 File Offset: 0x0022A599
		// (set) Token: 0x0600CE8A RID: 52874 RVA: 0x0022C3A1 File Offset: 0x0022A5A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003A64 RID: 14948
		// (get) Token: 0x0600CE8B RID: 52875 RVA: 0x0022C3AA File Offset: 0x0022A5AA
		// (set) Token: 0x0600CE8C RID: 52876 RVA: 0x0022C3B2 File Offset: 0x0022A5B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventId
		{
			get
			{
				return this.eventId_;
			}
			set
			{
				this.eventId_ = value;
			}
		}

		// Token: 0x0600CE8D RID: 52877 RVA: 0x0022C3BB File Offset: 0x0022A5BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartAlleyEventScRsp);
		}

		// Token: 0x0600CE8E RID: 52878 RVA: 0x0022C3C9 File Offset: 0x0022A5C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartAlleyEventScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.EventId == other.EventId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CE8F RID: 52879 RVA: 0x0022C408 File Offset: 0x0022A608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.EventId != 0U)
			{
				num ^= this.EventId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CE90 RID: 52880 RVA: 0x0022C460 File Offset: 0x0022A660
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CE91 RID: 52881 RVA: 0x0022C468 File Offset: 0x0022A668
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CE92 RID: 52882 RVA: 0x0022C474 File Offset: 0x0022A674
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this.EventId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.EventId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CE93 RID: 52883 RVA: 0x0022C4D0 File Offset: 0x0022A6D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.EventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CE94 RID: 52884 RVA: 0x0022C528 File Offset: 0x0022A728
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartAlleyEventScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.EventId != 0U)
			{
				this.EventId = other.EventId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CE95 RID: 52885 RVA: 0x0022C578 File Offset: 0x0022A778
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CE96 RID: 52886 RVA: 0x0022C584 File Offset: 0x0022A784
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.EventId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040052CF RID: 21199
		private static readonly MessageParser<StartAlleyEventScRsp> _parser = new MessageParser<StartAlleyEventScRsp>(() => new StartAlleyEventScRsp());

		// Token: 0x040052D0 RID: 21200
		private UnknownFieldSet _unknownFields;

		// Token: 0x040052D1 RID: 21201
		public const int RetcodeFieldNumber = 10;

		// Token: 0x040052D2 RID: 21202
		private uint retcode_;

		// Token: 0x040052D3 RID: 21203
		public const int EventIdFieldNumber = 12;

		// Token: 0x040052D4 RID: 21204
		private uint eventId_;
	}
}
